package com.iss.ljx.duty.service;

import com.iss.ljx.duty.entity.SearchDutyEntity;
import com.iss.ljx.mybatis.entity.PtDutyEntity;
import com.iss.ljx.mybatis.flexigrid.PadingRstType;
import com.iss.ljx.mybatis.flexigrid.PagingBean;
import com.iss.ljx.mybatis.ztree.ZtreeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DutyService {

    PadingRstType<PtDutyEntity> queryDutyListPage(SearchDutyEntity search, PagingBean paging);
    PadingRstType<PtDutyEntity> getDutyInfoById(String organId, PagingBean paging);

    List<ZtreeEntity> getMenuTree();

    void dutyAdd(PtDutyEntity ptDutyEntity);
    String getRoleIdByName(String roleName);
    String getOrganIdByName(String organName);
    void dutyDelete(String dutyId);
    void dutyUpdate(PtDutyEntity ptDutyEntity);
}
